package com.example.javaee.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.javaee.domain.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface CourseMapper extends BaseMapper<Course>{

    @Update("update course set likeRate = #{likeRate} WHERE Id = #{courseId}")
    void updateLikeGrades(Long courseId, String likeRate);
}
